package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TBusinessUser;
import com.bootdo.project.dao.TBusinessUserMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TBusinessUserService {

	@Autowired
    private TBusinessUserMapper tBusinessUserMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return tBusinessUserMapper.deleteByPrimaryKey(id);
    }

    public int insert(TBusinessUser record){
        return tBusinessUserMapper.insert(record);
    }

    public int insertSelective(TBusinessUser record){
        return tBusinessUserMapper.insertSelective(record);
    }

    public TBusinessUser selectByPrimaryKey(Integer id){
        return tBusinessUserMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TBusinessUser record){
        return tBusinessUserMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TBusinessUser record){
        return tBusinessUserMapper.updateByPrimaryKey(record);
    }

    public List<TBusinessUser> selectByCondition(TBusinessUser record){
        return tBusinessUserMapper.selectByCondition(record);
    }

    public List<TBusinessUser> selectAll(){
        return tBusinessUserMapper.selectAll();
    }

    public List<TBusinessUser> selectByPage(Page<TBusinessUser> page){
        return tBusinessUserMapper.selectByPage(page);
    }

    public Integer count(TBusinessUser record){
        return tBusinessUserMapper.count(record);
    }

    public int deleteByCondition(TBusinessUser record){
        return tBusinessUserMapper.deleteByCondition(record);
    }

}
